package com.iot08.api.controller;

import com.iot08.api.controller.base.BaseController;
import com.iot08.api.service.PxAdversterConfigurationService;
import com.iot08.api.vo.request.PxAdversterConfigurationQueryReqVo;
import com.iot08.common.utils.response.ResponseMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author cwj
 * @description
 * @date 2025/4/14 11:41
 **/
@RestController
@RequestMapping("getway/pxAdversterConfiguration")
public class PxAdversterConfigurationController extends BaseController {

    @Resource
    private PxAdversterConfigurationService pxAdversterConfigurationService;

    /**
     * @description 查询广告信息
     * @author cwj
     * @param [vo]
     * @return com.iot08.common.utils.response.ResponseMap
     * @date @time 2025/4/14 15:43
     **/
    @GetMapping("/queryAdByAdSlotCode")
    public ResponseMap queryAdConfigurationByAdSlot(@Validated PxAdversterConfigurationQueryReqVo vo)  {
        return pxAdversterConfigurationService.queryAdConfigurationByAdSlot(vo);
    }

}
